package bj.yanchao.com.githubdemo.modules;

import android.app.Application;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * ${TODO} What the class does
 *
 * @author： yanchao
 * @date： 6/4/16-3:51 PM
 * ${TAGS}
 */
@Module
public class AppModule {
    Application mApplication;

    public AppModule(Application v_application) {
        mApplication = v_application;
    }

    @Provides
    @Singleton
    Application providesApplication(){
        return mApplication;
    }
}
